package org.yscz.service;

import com.alibaba.fastjson.JSONObject;
import org.yscz.entity.RoomBean;

/**
 * @author achen
 * @create 2021-08-19 15:37
 */
public interface EvaluationService {

    /**
     * 通知流媒体开始及通知算法
     *
     * @param roomBean
     */
    void startEvaluation(RoomBean roomBean, Boolean flag);

    /**
     * 关闭流媒体并通知算法
     *
     * @param roomBean
     */
    void endEvaluation(RoomBean roomBean) throws InterruptedException;

    /**
     * 获取被测人测评信息
     *
     * @param dataObj
     * @return JSONObject
     */
    JSONObject getEvalInfos(JSONObject dataObj);
}
